#ifndef LOGIN_H
#define LOGIN_H

#include <QMainWindow>
#include <QDebug>
#include <QDialog>
#include <QTcpSocket>
#include <QMessageBox>
#include "mainwindow.h"
#include "regi.h"
#include "recode.h"
#include "del.h"
#include "uidesign.h"
#include <QJsonArray>
#include <QJsonDocument>
#include <QJsonObject>
#include <QJsonParseError>
#include <QJsonValue>
#include <QJsonValuePtr>
#include <QJsonValueRef>
#include <QJsonValueRefPtr>
QT_BEGIN_NAMESPACE
namespace Ui {
    class Login;
}
QT_END_NAMESPACE

class Login : public QMainWindow
{
    Q_OBJECT

public:
    Login(QWidget *parent = nullptr);
    ~Login();

private slots:

    void handConnected();
    void handRead();
    void reStart();
    void on_pushButton_clicked();

    void on_regButton_clicked();

    void on_changeCode_clicked();

    void on_delButton_clicked();

private:
    Ui::Login *ui;
    QTcpSocket *sock;
    QString ID;
};
#endif // LOGIN_H
